package controller

import (
	"context"
	"gf-admin-api-template/internal/utils/lerr"

	"gf-admin-api-template/api/v1"
)

var (
	Hello = cHello{}
)

type cHello struct{}

func (c *cHello) Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error) {
	//g.RequestFromCtx(ctx).Response.Writeln("Hello World!")
	err = lerr.Fail(lerr.Lerr{Code: lerr.CodeAuthFail})
	return
}
